from django.db import models


class Record(models.Model):
    carno = models.CharField(max_length=10, verbose_name='车牌')
    owner = models.CharField(max_length=20, verbose_name='车主')
    reason = models.CharField(max_length=255, verbose_name='违章原因')
    makedate = models.DateTimeField(verbose_name='违章时间')
    punish = models.CharField(max_length=255, verbose_name='处罚方式')
    dealt = models.BooleanField(default=False, verbose_name='是否受理')

    class Meta:
        db_table = 'tb_record'
